package MyRemoteSorter;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
public class SortServer 
{
	
	public SortServer() throws RemoteException
	{
		super();	
	}
	public static void main(String[] args)throws RemoteException
	{
		try
		{
			Registry registry = LocateRegistry.createRegistry(1099);
			ISortFactory sf = new SortFactory();
			registry.rebind("sortfactory", sf);
			new SortServer();
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
	}
}
